SRC = exploit.m
OUTPUT = bin/exploit

.PHONY: exec

exec: $(SRC)
	@mkdir -p bin
	clang $(SRC) -framework Foundation -o $(OUTPUT)

run: exec
	$(OUTPUT)

format:
	clang-format -i $(SRC)

install:
	mkdir -p ../../../../data/exploits/CVE-2019-8565/
	cp $(OUTPUT) ../../../../data/exploits/CVE-2019-8565/exploit

